function deletefile(url)
{
    var http = new XMLHttpRequest();
    http.onreadystatechange = function()
    {
        var div = document.getElementById("deletefileaction");
        if(http.readyState == 4 && http.status == 200 && http.responseText == 1)
        {
            div.innerHTML = "删除成功√";
            div.style.background = "#56ff44";
            //setTimeout("div.setAttribute(\"hidden\", \"hidden\"); location.reload();", 1000);
            setTimeout(function(){
                div.setAttribute("hidden", "hidden");
                location.reload();
            }, 1000);

        }
        else if(http.readyState == 4 && http.status == 200 && http.responseText == 0)
        {
            div.innerHTML = "删除失败×";
            div.style.background = "#ff3535";
            setTimeout("div.setAttribute(\"hidden\", \"hidden\")", 1000);
        }
        else
        {
            div.removeAttribute("hidden");
            div.style.background = "#d6fdfa";
            div.innerHTML = "删除中.....";
        }
    };
    http.open("POST", "deleteFile.php", true);
    http.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
    http.send("url=" + url);
}